#ifndef _BSP_USART_FPUTC_C_
#define _BSP_USART_FPUTC_C_
#include "usart.h"
#include "stdio.h"         ///<添加头文件
#include "stm32f1xx_hal.h" ///<添加头文件

#ifdef __GNUC__

#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)

PUTCHAR_PROTOTYPE
{

  HAL_UART_Transmit(&huart1, (uint8_t*)&ch, 1, HAL_MAX_DELAY);
  return ch;
}
#endif

#endif
